﻿@{
    ViewBag.Title = "newsView";
}

<div class="center">
    <div id="Breadcrumb" class="Breadcrumb">
        <ul>
            <li class="first">
                <a href='javascript:;' onclick="javascript:loadAction('Index2','Main')">Trang chủ
                </a>
            </li>
            <li>
                <a href='javascript:;' onclick="javascript:loadAction('personal','Account')">Tài khoản của tôi</a>
            </li>
            <li>
                <a href='javascript:;' onclick="javascript:loadAction('newsList','Admin')">Danh sách tin tức</a>
            </li>
            <li>
                <span>Thông tin chi tiết</span>
            </li>
        </ul>
    </div>
    <div class="Account-Module DefaultModule">
        <div class="DefaultModule LoginForm Block">
            <span style="display: none;"></span>
            <div id="CreateAccountForm" class="Block Moveable Panel CreateAccountForm">

                <div id="cphMain_ctl00_ctl01_ctl00_pnlInfo">

                    <div class="BlockContent">
                        <div class="defaultTitle LoginForm-title">
                            <h1>Thông tin chi tiết
                            </h1>
                        </div>
                        
                        <div class="defaultContent LoginForm-content CreateAccountContainer">

                            <div class="FormContainer HorizontalFormContainer NarrowFormContainer">
                                <dl style="margin-bottom: 10px;">
                                    <dt>
                                        <span class="required">*</span> Tiêu đề:
                                    </dt>
                                    <dd>
                                        <input name="title" type="text" value="@Model.title"
                                            id="title" class="NormalTextBox" style="width: 350px;">
                                    </dd>
                                    <dt>
                                        <span class="required">*</span> Nội dung:
                                    </dt>
                                    <dd>&nbsp;
                                    </dd>
                                </dl>
                            </div>
                        </div>
                        <div>
                            <textarea id="my-textarea"></textarea>
                        </div>
                        <p></p>
                        <a href="javascript:;" onclick="javascript:postNews(@Model.ID)" class="myBtn1" style="margin-left: 230px;">Gửi bài viết</a>
                        <p></p>
                    </div>

                    <div class="defaultFooter LoginForm-footer">
                        <div></div>
                    </div>
                </div>

            </div>
        </div>
    </div>
</div>
<input type="hidden" id="txtHidden" name="txtHidden" value="@Model.body"/>
<script type="text/javascript">
    var body = $("#txtHidden").val();
    $(function () {
        $('#my-textarea').ckeditor();
        CKEDITOR.config.height = 500;
        CKEDITOR.instances['my-textarea'].setData(body);
    });    
</script>

